-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filename incrementor for secret filedrops. #4491
Conversation
5744f5a
to
4b087c2
Compare
@micbar we implemented this in ocdav ... I'm not sure if this needs to move to the storage provider. It would need to have a way to find out if the request is made to a public file drop. In ocdav we use the token stat permission set to make that decision. Which feels fragile, but that is what we can determine. Hm we might check the share permissions in dav.go and store them in the context ... then tus.go and dav.go can read the share info 🤔 |
Co-authored-by: Jörn Dreyer <[email protected]> Signed-off-by: Christian Richter <[email protected]>
Co-authored-by: Jörn Dreyer <[email protected]> Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Jörn Friedrich Dreyer <[email protected]> Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
9fc7110
to
b961119
Compare
I created a followup issue owncloud/ocis#8358. This PR is good as it is for now. |
Enhancement: Add filename incrementor for secret filedrops
We have added a function that appends a number to the filename if the file already exists in a secret filedrop.
This is useful if you want to upload a file with the same name multiple times.
refs owncloud/ocis#8291